﻿@{
    ViewBag.Title = "Index";
}
@model IEnumerable<SelfInfo.Models.TYPE>
<h2>Index TYPE</h2>

<div class="row">
<table class="table table-striped">
   <thead>
      <tr>
         <td>ID</td>
         <td>NAME</td>
      </tr>
   </thead>
   <tbody>
    @foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ID)
        </td>

        <td>
            @Html.DisplayFor(modelItem => item.NAME)
        </td>
    </tr>
    }
   </tbody>

</table>
</div>

<div  class='row'>
 <a id='model_create' class="btn btn-primary" data-toggle="modal" data-target="#view_create" href="/selfinfo/type/create">Create One</a>
</div>


<div  class="modal fade" id="view_create" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
 <div class="modal-dialog">
    <div class="modal-content"> 
      <div class='modal-body'>
      </div>
    </div>
 </div>
</div>